from api_providers.baidu.provider_baidu import ProviderBaidu
from api_providers.provider_abc import ProviderABC
from api_providers.provider_xyz import ProviderXYZ
from config.config import Config

class ProviderFactory:
    @staticmethod
    def get_provider():
        if Config.PROVIDER_NAME == "abc":
            return ProviderABC(api_key=Config.PROVIDER_API_KEY)
        elif Config.PROVIDER_NAME == "xyz":
            return ProviderXYZ(api_key=Config.PROVIDER_API_KEY)
        elif Config.PROVIDER_NAME == "baidu":
            return ProviderBaidu(api_key=Config.PROVIDER_BAIDU_API,secret_key=Config.PROVIDER_BAIDU_API_KEY)
        else:
            raise ValueError(f"Unsupported provider: {Config.PROVIDER_NAME}")
